package com.bootdo.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.system.dao.AdvertisingDao;
import com.bootdo.system.domain.AdvertisingDO;
import com.bootdo.system.service.AdvertisingService;



@Service
public class AdvertisingServiceImpl implements AdvertisingService {
	@Autowired
	private AdvertisingDao advertisingDao;
	
	@Override
	public AdvertisingDO get(Integer id){
		return advertisingDao.get(id);
	}
	
	@Override
	public List<AdvertisingDO> list(Map<String, Object> map){
		return advertisingDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return advertisingDao.count(map);
	}
	
	@Override
	public int save(AdvertisingDO advertising){
		return advertisingDao.save(advertising);
	}
	
	@Override
	public int update(AdvertisingDO advertising){
		return advertisingDao.update(advertising);
	}
	
	@Override
	public int remove(Integer id){
		return advertisingDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return advertisingDao.batchRemove(ids);
	}

	@Override
	public List<AdvertisingDO> getListByStatus() {
		// TODO Auto-generated method stub
		return advertisingDao.getListByStatus();
	}
	
}
